<template>
  <div class="app-container">
    <div class="head">
      <img src="@/assets/img/Layout/position.png" />
      <p class="see-block">模版配置详情</p>
    </div>
    <div class="view-container">
      <el-row class="detail-item">
        <el-col :span="10">
            <span>模板名称：</span>{{ detailData.templateName ?  detailData.templateName : '暂无'}}
        </el-col>
      </el-row>
      <el-row class="detail-item">
        <el-col :span="10">
            <span>模板地址：</span>{{ detailData.templateAddress ?  detailData.templateAddress : '暂无'}}
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import { antiCodeTemplateDetail } from "@/api/system/antiCode/antiCode"
export default {
  name: "detail",
  data(){
    return {
      id: '',
      detailData: '',
    }
  },
  created() {
    this.id = this.$route.query.id
    this.getDetailData()
  },
  methods: {
    // 获取详情信息
    getDetailData() {
      antiCodeTemplateDetail(this.id).then(res => {
        this.detailData = res.data
      })
    }
  }
}
</script>